# -*- coding: utf-8 -*-
def qiuJieCheng(n):
    if n > 1:
        return n*qiuJieCheng(n-1)
    else:
        return 1


print("5! = %d" % qiuJieCheng(5))
print("8! = %d" % qiuJieCheng(8))

